<template>
  <div>
    <h1>通过开启 props 获取: {{id}}</h1>
  </div>
</template>

<script>
export default {
  name: "Detail",
  props: ['id']
}
</script>

<style scoped>

</style>